package course.myfile;

import java.io.File;

public class MyFile {
    public static void main(String[] args) {
        File file1 = new File("D:\\test\\a.txt");
        System.out.println(file1);

        String d1 = "D:\\test";
        String d2 = "a.txt";
        File file2 = new File(d1,d2);
        System.out.println(file2);

        File file3 = new File(d1);
        File file4 = new File(file3,d2);
        System.out.println(file4);
    }
}
